package org.dormnet.dao.mapping;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.dormnet.dao.bean.Friends;

public class FriendsMapping implements BeanMapping {
	
	public Object mapping(ResultSet resultSet) throws SQLException {
		Friends friends = new Friends();
		friends.setDormid(resultSet.getInt("dormid"));
		friends.setFid(resultSet.getInt("fid"));
		friends.setFriendid(resultSet.getInt("friendid"));
		friends.setStatus(resultSet.getInt("status"));
		return friends;
	}

}
